package com.hand.demo.domain.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.choerodon.mybatis.annotation.ModifyAudit;
import io.choerodon.mybatis.annotation.VersionAudit;
import io.choerodon.mybatis.domain.AuditDomain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 标签分类表(HhrTaCategory)实体类
 *
 * @author
 * @since 2025-07-02 11:10:33
 */

@ApiModel("标签分类表")
@VersionAudit
@ModifyAudit
@JsonInclude(value = JsonInclude.Include.NON_NULL)
@Table(name = "hhr_ta_category")
public class HhrTaCategory extends AuditDomain {
    private static final long serialVersionUID = 244969732189657697L;

    public static final String FIELD_ID = "id";
    public static final String FIELD_CATEGORY_NAME = "categoryName";
    public static final String FIELD_IS_ENABLED = "isEnabled";
    public static final String FIELD_PARENT_ID = "parentId";
    public static final String FIELD_TENANT_ID = "tenantId";

    @ApiModelProperty("主键ID")
    @Id
    @GeneratedValue
    private Long id;

    @ApiModelProperty(value = "分类名称", required = true)
    @NotBlank
    private String categoryName;

    @ApiModelProperty(value = "启用状态：是否启用（启用/失效），默认启用")
    private Integer isEnabled;

    @ApiModelProperty(value = "父分类ID，0表示一级分类")
    private Long parentId;

    @ApiModelProperty(value = "租户ID", required = true)
    @NotNull
    private Long tenantId;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public Integer getIsEnabled() {
        return isEnabled;
    }

    public void setIsEnabled(Integer isEnabled) {
        this.isEnabled = isEnabled;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Long getTenantId() {
        return tenantId;
    }

    public void setTenantId(Long tenantId) {
        this.tenantId = tenantId;
    }

}

